[IA64] Clean up unused pkrs[] handling.
authorAlex Williamson <alex.williamson@hp.com>
Mon, 30 Jul 2007 22:01:05 +0000 (16:01 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 30 Jul 2007 22:01:05 +0000 (16:01 -0600)
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
xen/arch/ia64/xen/vcpu.c
xen/include/public/arch-ia64.h

index cf02a908aa167235d884c028a0bbda2cfdcc2de8..a250efef187a57186b62ae3e362e63cc70a90099 100644 (file)
@@ -2057,28 +2057,14 @@ IA64FAULT vcpu_get_rr(VCPU * vcpu, u64 reg, u64 * pval)
 
 IA64FAULT vcpu_get_pkr(VCPU * vcpu, u64 reg, u64 * pval)
 {
-#ifndef PKR_USE_FIXED
        printk("vcpu_get_pkr: called, not implemented yet\n");
        return IA64_ILLOP_FAULT;
-#else
-       u64 val = (u64) ia64_get_pkr(reg);
-       *pval = val;
-       return IA64_NO_FAULT;
-#endif
 }
 
 IA64FAULT vcpu_set_pkr(VCPU * vcpu, u64 reg, u64 val)
 {
-#ifndef PKR_USE_FIXED
        printk("vcpu_set_pkr: called, not implemented yet\n");
        return IA64_ILLOP_FAULT;
-#else
-//      if (reg >= NPKRS)
-//             return IA64_ILLOP_FAULT;
-       vcpu->pkrs[reg] = val;
-       ia64_set_pkr(reg, val);
-       return IA64_NO_FAULT;
-#endif
 }
 
 /**************************************************************************
index 50062d103ab35e20bd294dad26ac2b7164ac92be..b97008cf65623b1697f97b33d9167ae353408769 100644 (file)
@@ -236,8 +236,7 @@ struct mapped_regs {
             int banknum; // 0 or 1, which virtual register bank is active
             unsigned long rrs[8]; // region registers
             unsigned long krs[8]; // kernel registers
-            unsigned long pkrs[8]; // protection key registers
-            unsigned long tmp[8]; // temp registers (e.g. for hyperprivops)
+            unsigned long tmp[16]; // temp registers (e.g. for hyperprivops)
         };
     };
 };